//大厅游戏列表ui
import supMount from "../../sup/supMount"
import infosModule from "../../glo/infosModule"
import clubMainModule from "./clubMainModule"
const { ccclass, property } = cc._decorator;
@ccclass
export default class cClubsMount extends supMount {
    @property(cc.Node) 
    private content:cc.Node    = null; //容器
     //组件脚本启动扩展
     protected extendStart(){
        let packs:s2c_clubClubs = infosModule.getClubs()
        let clubs:s2c_clubClub[] = packs.clubs
        clubs.forEach(club => {
            this.pushBackSub(club)
        });
     }

     //初始化俱乐部节点
     protected pushBackSub(club:s2c_clubClub){
        let mod:clubMainModule = new clubMainModule(club)
        mod.settingscreen(this.content)
        mod.changeStart()
     }
}
